package com.hsc.yalebao.weight;

import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Bundle;
import android.widget.Button;
import android.widget.TextView;

import com.hsc.pcddfivepcdd.R;

public class MyDialog1 extends Dialog {
    public Button btn_confirm;
    private MyDialogListener cancleListener = null;
    private Context context;
    private MyDialogListener defaultListener = null;
    private float heightProportion = 0.12F;
    private MyDialogListener okListener = null;
    public TextView tv_tishi;
    public TextView tv_title;
    private float widthProportion = 0.7F;

    public MyDialog1(Context paramContext) {
        super(paramContext);
        this.context = paramContext;
        initDialog();
    }

    public MyDialog1(Context paramContext, int paramInt) {
        super(paramContext, paramInt);
        this.context = paramContext;
        initDialog();
    }

    protected void initDialog() {
        requestWindowFeature(1);

        getWindow().setContentView(R.layout.dialog1);
        setCanceledOnTouchOutside(false);
        getWindow().getDecorView().getBackground().setAlpha(0);
        this.tv_title = ((TextView) findViewById(R.id.tv_title));
        this.tv_tishi = ((TextView) findViewById(R.id.tv_tishi));
        this.btn_confirm = ((Button) findViewById(R.id.btn_confirm));
        setDialogSize(this.widthProportion, this.heightProportion, 17);
    }

    protected void onCreate(Bundle paramBundle) {
        super.onCreate(paramBundle);
    }

    public void setDialogSize(float paramFloat1, float paramFloat2, int paramInt) {
    }

    public void setIcon(int paramInt) {
    }

    public void setMessage(String paramString) {
        this.tv_tishi.setText(paramString);
    }

    public void setOnButtonGroupClick(MyDialogListener paramMyDialogListener1, MyDialogListener paramMyDialogListener2) {
        this.cancleListener = paramMyDialogListener1;
        this.okListener = paramMyDialogListener2;
    }

    public void setOnButtonGroupClick(String paramString1, MyDialogListener paramMyDialogListener1, String paramString2, MyDialogListener paramMyDialogListener2) {
        this.cancleListener = paramMyDialogListener1;
        this.okListener = paramMyDialogListener2;
    }

    public void setOnDefaultButtonClick(MyDialogListener paramMyDialogListener) {
        this.defaultListener = paramMyDialogListener;
    }

    public void setOnDefaultButtonClick(String paramString, MyDialogListener paramMyDialogListener) {
        this.defaultListener = paramMyDialogListener;
    }

    public void setOnDismissListener(DialogInterface.OnDismissListener paramOnDismissListener) {
        super.setOnDismissListener(paramOnDismissListener);
    }

    public void setTitle(String paramString) {
        this.tv_title.setText(paramString);
    }

    public static abstract interface MyDialogListener {
        public abstract void onClick();
    }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.hsc.yalebao.weight.MyDialog1
 * JD-Core Version:    0.6.2
 */